package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Kirito
 * @description: 存放sqlMapConfig.xml文件内容
 * @date 2020/03/25
 */
public class Configuration {
    /*将解析出来的数据库配置信息直接设置给DataSource对象*/
    private DataSource dataSource;
    /*
     * 存放MappedStatement的信息
     * key: statementId
     * value: MappedStatement
     * */
    private Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
